Added a method to functions to get their funcdef (or null if native).
Closes #130 (serialization lib no longer depends on stream.BinaryStream)