Studies in aza-Claisen rearrangement: synthesis of dimedone-annelated unusual heterocycles