Common JS API generator spec fixed for instances returned via callbacks