fix FunctionScanner
added DefineConstantScanner
added ClassScanner
ClassScanner become more lazy