Accept objects as well as arrays for styles