Generated assertion for public boolean field is wrong - Fixes #25