[WIP] Fix some dialyzer warnings