[bugfix] fold declarators in right-to-left order