Replace 520 constant with MAX_SCRIPT_ELEMENT_SIZE 

Conflicts:
	src/main.cpp