changed the dict() to dict:dict() in the type spec of types and generate...

...d the -type spec for each record in the _types.hrl file

This is needed for Erlang R17 support as well as being able to run the code in dialyzer