applied dynamic-extent to register var

fixed some bugs

updated tests

fixed some errors and updates tests

splitted finalize-init-declarator

added simple empty-dim pattern