JMA - Further updates to unify() for more consistency with the ruby version