Rebased to the latest verson dmd 2.067. Not yet verified the outcome.