Clarify allowed members in object definitions

Clarification of allowed declarations, as requested in scala/scala#3407