Fixes #48, allow restrictions on attribute values.