some small tweaks to the layout optimization PR
- replace inbounds with inline where intended
- rename jl_justbits
- fix compiler warnings about std::move
- guard jl_is_datatype_singleton query correctly
- add missing undef reference checks to arrayref and fieldref (and fix array isassigned)