Fixed Matrix3D() construction that initialized to identity even if a vector was provided.
Fixed array.shift() not returning undefined if the array is empty.