Fixes to offline generator for constant nodes