Use a Param slice instead of a map

Improves the performance, reduces the memory consumption and preserves
the parameter order. This allows to access values by the index.
CleanPath: remove impossible check
tree: fix maxParams for splitted nodes