Support primary_key option in routes and routing generated params.