fix annotation 2 model limitation to put Library before type definition