clarify memoryview example in userguide
make sure memoryview example actually runs (fix typing errors)
more clarification on memoryview example (indexing syntax)
memoryviews example: use native ints, no more libc.stdint
Add test for memoryview of extension type

A test for a bug fixed in commit 478b939a4c99a77c0863cfd.

v2: add commit link above
v3: # tag: instead of # tags:, drop cpp tag as it means something different
    that I originally thought

There was a bug that produced C code where gcc emitted warnings:
extension_type_memoryview.c: In function ‘__pyx_pf_25extension_type_memoryview_test_getitem’:
extension_type_memoryview.c:1468:15: warning: assignment from incompatible pointer type
extension_type_memoryview.c: In function ‘__pyx_pf_25extension_type_memoryview_2test_getitem_typed’:
extension_type_memoryview.c:1565:15: warning: assignment from incompatible pointer type
extension_type_memoryview.c:1568:18: warning: assignment from incompatible pointer type

And g++ failed with errors:
extension_type_memoryview.c: In function ‘PyObject* __pyx_pf_25extension_type_memoryview_test_getitem(PyObject*)’:
extension_type_memoryview.c:1468:213: error: cannot convert ‘__pyx_obj_25extension_type_memoryview_ExtensionType*’ to ‘PyObject*’ in assignment
extension_type_memoryview.c: In function ‘PyObject* __pyx_pf_25extension_type_memoryview_2test_getitem_typed(PyObject*)’:
extension_type_memoryview.c:1565:213: error: cannot convert ‘__pyx_obj_25extension_type_memoryview_ExtensionType*’ to ‘PyObject*’ in assignment
extension_type_memoryview.c:1568:20: error: cannot convert ‘PyObject*’ to ‘__pyx_obj_25extension_type_memoryview_ExtensionType*’ in assignment

--HG--
extra : transplant_source : %02N%D4%B99N%D6%FBv%7C%F0%94%E5%BE%CE%C9t%D6%04%11
Updated documentation of __dealloc__ method.

Added note that the __dealloc__ method of a superclass is always called, even if it is overridden in a subclass.
Minor cleanup of documentation markup.
Merge pull request #170 from joshayers/docfix

Update documentation of extension type __dealloc__ method.
fold 'x in [a,b,c]' into 'x in (a,b,c)' as tuples are more efficient than lists
propagate constant_result when folding lists into tuples
propagate constant_result for special case in FlattenInListTransform
fix warning about unused temp variable when both FlattenInListTransform and SwitchTransform are applied
drop 'vile hack' by restricting state changes of AttributeNode during infer_type() to what analyse_types() does
make sure utility code loaded for header files and module preamble gets properly formatted
fix test
add .py test for 'binding' effect

--HG--
rename : tests/run/function_as_method_T494.pyx => tests/run/function_as_method_py_T494.py
disable checks in test that are unrelated to the tested behaviour
add comment in test
enable working tests from bugs.txt
prevent special __weakref__ attribute from triggering generation of garbage collection code for the type