Support internal syntax definitions
Fix transitive export bug that made 'only' modifier fail