Corrected build and introduced HasTopology<E>

Signed-off-by: Gary Pamparà <gpampara@gmail.com>