Params not correctly handled in MapGuide source

This PR supersedes #2461. Please review.