refactor of _getParamNamesFromRoute in xen\application\Router