[OPTIQ-404] MergeProjectRule should not construct RexPrograms for simple mappings

Move ProjectRel.getPermutation() and .isMapping() up to ProjectRelBase.

Fix a bug in RelOptUtil.projectMapping.