Fix topology crafting, fix type tests for cs_fencetopo

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>