Added support for allowing inheritance merging

Merge now 'copies' both value attributes and function attributes defined in the instance level as well as those defined in the prototype inheritance chain.