Fixed VS2010 templating issues with decompose function caused by ambiguous type conversions and constants.