Fixes a regression introduced in 2.15 which required users to always specify an Attr value when constructing a Code element.