An implication perhaps?

The conclusion that can be drawn from something although it is not explicitly stated.

https://en.oxforddictionaries.com/definition/implication


It could be to 'insinuate' something, i.e. to imply or suggest without directly stating it.

It depends on the context of your text, which is why it's quite difficult to use with those examples, but allegory is not a very common word so I would refrain from using it unless you know that it absolutely fits the context.

http://www.dictionary.com/browse/insinuate