Fix defaulting of 'optional' parameter
Correctly assigning attributes to <recv> nodes