Test for #1572: NPE in AbstractModelLoader when using compiler-related types
Added more test samples for #1572