fix constructor spread optimisation - thanks @zloirock