style: code cleanup
feat(router): allow not leaving when only params change

Fixes #1
chore(router): minor cleanup around dontLeaveOnParamChanges