fix broken tests
add package info to type declaration
add full type name to type symbol
generate code with package declaration