[WIP] make the ReferenceBlock handle any block 

some code from @lsmith77, opening a PR so it does not get lost.

he says: hacky as it currently uses the twig extension