Support strict assignment checks under a flag, fixes #15