Change methods to return immutable collections.

Unlike arrays which are passed by value, Vectors and Maps are passed by reference. Returning `Vector` or `Map` means that anyone can mutate the children or attributes of an XHP instance which violates the encapsulation that XHP guarantees.