changed Array.collect and Array.inject to use PHL 1.2.7 method type parameters