Improve basic display parameters parsing and add tests.
Assume version 1.3 for tests by default.
Little clean up here and there.