support default values in bytecode
support ref in type parser