fix broken type constraints
turn warnings on by default
fix some broken attribute types