Handle bitfield declaration in public API visitor

Fix #327