Added support for mounting an arrays of middleware.