Fix multiple state type registration

Issue #89 

If there are multiple states always append a state unique id of the form "+L%u". This has no affect on the first state, thus avoiding type name changes and a state is still prevented from registering the same type name multiple times.