Fixed spawn packet bug, added entity type register checker, fixed scoreboard memory leak

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>