Bug fixes in selfcheck and object validation.