Add missing trailing newlines
Rename SubType to PromiseType (Redmine #2125)