Add consistency check for unexported, but declared, API functions