Implement basic support for AnyVal