Introduce option to ignore unknown attributes.

By using the `ignore_unknown_attributes` option an exception will no longer be raised.