Minor refactoring
Get the top level Shape before adding ports into it
Fix ports layout when setting refinement
Better rendering for actors
Fixes a bug when refining to entity without port