Replaced getAttributes in iml::utils.h with templated GetAttributes.