Fixed Variable blocks

Variable blocks now properly unlink when you change their type.