added body-member-detection for case classes, with unit tests and docs