removed dojo/declare, added rgba safety in X2RGB