[Added] GetType function for custom types

Also makes this new function available as G.type() in starfall