Fixed #1311: Add support for destructuring function parameters (PR #1450)

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>