Fix model rules generation

If several fields had the same type, array keys were overwritten.
Merge pull request #95 from vlakoff/master

Fix model rules generation