Made sure BeanConfiguration does not try to serialize non-serializable
objects (see datacleaner/DataCleaner#113)