Added convenience functions for creating userdata types.