Bugfix for a ClassCastException on autoheight block-containers where Position instances come through for normal penalties between blocks. Additional fix so a distinction is made between space-related positions and the penalties that caused the problem above.