Fixed duplicate portal definition name merging. Added Resultset spec to test this.