Core.Model: fixed issue with instance.set() not correctly setting attributes.