Raise proper warnings when default clauses from different definitions collide, closes #1244