added extending interfaces support;
added hoisting of interface variables to the top;