Use basestring instead of Array in RefData

If multiple files are grouped, use a StructData , with multiple RefData sharing the same types.

Update type/format, to use the FormattedType class
Merge branch 'develop' of https://github.com/mobyle2/mobyle2.lib into develop
fix some issues with refdata vs structdata and adapt tests