WFLY-1658 Fix handling of metadata on EJB  methods which accept arrays as parameters