Add checking of allowed attributes at compile time