Pulse duration and collision effects in the multiphoton dissociation of HDCO