Only strip colors on defined meta properties

Also a small var declaration cleanup