bug fixes

Updates discovered working on a client project.
moved negative to PMML built-ins
more natural fill order for 2d layout and some fixes