Use instancetype instead of explicit type. (fix #111)