Automatic implemention of stronly typed IDs via record structs with compile-time feature auto-detection