ema/sma - updated / isArray and isObject added to global scope