Fix #398: Prevent export of nested objects