clean up some reflection functions

methods(f, t) returns an array of Methods
code_lowered returns an array of LambdaStaticData (fixes #4023)
code_typed returns an array of ASTs
_methods returns tuples (type, env, Method)
code_llvm, code_native: error if no method found
allow code_llvm, code_native to work on constructors