Support function composition in marcpatterns