Fixes #16 Generate assertions with offset for double and float types
refactoring after introducing field assertion generation