Skip private methods when computing data types.

Fixes #42.