Added support for array to fromScalar
Added getValue() method to scalars