use `extend` for object merging, Fix https://github.com/spmjs/spm/issues/948