Added an object_struct macro.
Fixed some missing uses in object_struct macro.
Updated object_struct macro to handle templated structs.
Simplified object_struct macro.