fixed bug of jii.reduce method when optional `context` param is passed