Modifies handling of _template_attrs

Sets the value of each member of _template_attrs to None after generating the attribute.  The keys are left as they are utilized at higher levels of the model (i.e. from ParameterContext)
Adds support for numpy scalars to _dohash