Member-operations.h raising 'Out of bounds' error

phpbb test fails when array gets passed in encode function

fixes #1734