XCOMMONS-578: Don't serialize component associated to Object fields

(cherry picked from commit 0f60183f662e62b08ab5e7c792645b697dbddaf9)