merged changes from #308
fixed the getSimpleTag method to use proper constructor
removed merge leftovers
adjust blank lines
replaced tab by spaces
Merge pull request #322 from asobolev/master

A prototype for #316, only for SimpleTag and some superclasses