Support package-local types for ceylon/ceylon-spec#1095

Just skip anonymous function containers and remember if they belong to a package
LocalTypeVisitor: make sure we also visit attribute values for ceylon/ceylon-spec#1095
model loader: no idea what crack I was smoking or how it could ever work… ceylon/ceylon-spec#1095
Moved local types metamodel test to language module
Test for #1845: Bug with package local types