switched the check for repeated field type to use the occurrence attribute
Merge pull request #21 from tanmaykm/add_field-fix

Check for repeated field type should use the occurrence attribute of ProtoMetaAttribs
tests for add_field. ref #21