Added support for spread/rest operator (cf #953 and #954)
Added tests

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>