[relationship] no relationship sets NULL [refs #40]
[entity] fixed cloning support [closes #33]