Fix dialyzer warnings

These were introduced in the cm/OC-5178/erlware_commons branch.