move check for post decl placeholder to add_param helper

This is a more direct theft^Wtranslation of std, and it will show the eject near the
polaceholder and not right after the entire block/routine the placeholder is in.