Big 853: replace enable_if in Ref<> ctor by static assertions and add failtests for Ref<>