add sprite.type for lua

Signed-off-by: rainfiel <rainfiel@gmail.com>
fix nested scissor error
Merge branch 'master' of github.com:cloudwu/ejoy2d into public