Merge pull request #461 from antmicro/memory_in_genblock_nested

Support memories in nested genblocks