functions called within other custom functions must always pass an array

This is now enforced in puppet3 making the change necessary to be compatible with puppet > 3.x