Fixed bug in registerfile_template regarding hierarchical registerfiles
only conataining external registerfiles...