Used named function expressions for constructors when extending

Makes things look a bit more pleasant in some debuggers