BugFix: compute the layout of the frame types AFTER the optimizations like